<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
  window.onload=function f() {
    var myTime=new Date();
    document.getElementById("currentTime").innerText=myTime.getTime();
  }
  function loadPage() {
    var targetURL=document.getElementById('url').value;
    console.log(targetURL);
    document.getElementById('iframePosition').src=targetURL;
  }
</script>
<div>
  <p>请输入要加载的地址：<span id="currentTime"></span></p>
  <p>
    <input type="text" id="url" value="">
    <input type="button" onclick="loadPage()" value="提交">
  </p>
</div>
<div>
  <h3>页面要加载的位置</h3>
  <iframe style="width: 100%;height: 500px" id="iframePosition">

  </iframe>
</div>
</body>
</html>